@echo off
setlocal
pushd %~dp0
set PATH=%WINDIR%\Microsoft.NET\Framework\v2.0.50727\;%PATH%
if /I "%1" == "/Release" (
    MSBuild.exe /p:Configuration=Release HyperAddin.sln %2 %3 %4 %5 %6 %7 %8 %9
    echo.
    echo.Created an optimized version of the project.
) else (
    MSBuild.exe HyperAddin.sln %*
    echo.
    echo.Use build /Release to create an optimized version of the project.
)
